using System;
using UnityEngine;

public class StateEventManager : MonoBehaviour
{
    public static event Action OnStateEnter;
    public static event Action OnStateExit;

    public static void TriggerStateEnter() => OnStateEnter?.Invoke();
    public static void TriggerStateExit() => OnStateExit?.Invoke();

    public static IGameState CurrentState { get; private set; }

    public static void SetCurrentState(IGameState newState)
    {
        CurrentState = newState;
    }
}
